package org.jeecg.modules.biz.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 认证信息
 * @Author: Liangyt
 * @Date: 2022-02-28
 * @Version: V1.0
 */
@Data
@TableName("fc_auth_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "biz_auth_info对象", description = "认证信息")
public class AuthInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 认证类型：0未认证1个人认证2商家认证3个人转商家
     */
    @Excel(name = "认证类型：0未认证1个人认证2商家认证3个人转商家", width = 15)
    @ApiModelProperty(value = "认证类型：0未认证1个人认证2商家认证3个人转商家")
    private Integer authType;

    /**
     * 认证人ID
     */
    @Excel(name = "认证人ID", width = 15)
    @ApiModelProperty(value = "认证人ID")
    private String authUserId;
    /**
     * 认证人姓名
     */
    @Excel(name = "认证人姓名", width = 15)
    @ApiModelProperty(value = "认证人姓名")
    private String authUserName;

    /**
     * 认证资料
     */
    @Excel(name = "认证资料", width = 15)
    @ApiModelProperty(value = "认证资料")
    private String authInfo;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @Excel(name = "所属部门", width = 15)
    @ApiModelProperty(value = "所属部门")
    private String orgCode;

    /**
     * 状态：0待审批1已通过2已驳回
     */
    @Excel(name = "状态：0待审批1已通过2已驳回", width = 1)
    @ApiModelProperty(value = "状态：0待审批1已通过2已驳回")
    private Integer state;

    /**
     * 状态说明
     */
    @ApiModelProperty(value = "状态说明")
    private String stateInfo;

    /**
     * 操作时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "操作时间")
    private Date optTime;
}
